﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace MM.Common.IRemoteDataBase
{
    [ServiceContract]
    public interface IQueryService
    {
        // Methods
        [OperationContract]
        bool RemoteDBExecuteScalar(string rcode, ref string error, string commandtext, OraParm[] parms, ref string obj);
        [OperationContract]
        string RemoteDBRetrieve(string rcode, ref string error, string commandtext, OraParm[] parm, string table_name);
        [OperationContract]
        string[] RemoteDBRetrieveArray(string rcode, ref string error, string[] commandtexts, OraParm[][] parms, string[] table_names);
        [OperationContract]
        string RemoteDBRetrieveProcedure(string rcode, ref string error, string procedure_name, ref OraParm[] parm, string cursor_name, string table_name);
        [OperationContract]
        bool RemoteRegister(ref string rcode, ref string error, string node, string password);
    }
}
